﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Customer_Profile.eCard.DBDao;
using KVB.Common;

namespace Customer_Profile.eCard.Match
{
    public partial class netBank_UploadList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bindUploadList();
        }

        private void bindUploadList()
        {
            try
            {
                DataSet ds = netBankDao.getNetBankUploadList();
                if (ds != null && ds.Tables.Count > 0)
                {
                    ASPxGridView1.DataSource = ds.Tables[0];
                    ASPxGridView1.DataBind();
                }
                else
                {
                    ASPxGridView1.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.WriteDefaultLog("bindUploadList", ex.ToString());
            }
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("bankaccount_upload.aspx", false);
        }
    }
}